

extern int is_little_endian(void);
extern int is_big_endian(void);

extern int read_be16int(unsigned char *data);
extern int read_le32int(unsigned char *data);
extern int read_be24int(unsigned char *data);
extern double read_be64double(unsigned char *data);

extern void write_be64double(unsigned char *data, double value);
extern void write_le32int(unsigned char *data, int value);
extern void write_be24int(unsigned char *data, int value);
extern void write_be16int(unsigned char *data, int value);

